// 关联住户房间管理
import {
    ajaxPostBack,
    ajaxPost
} from '@/utils/data/request'

// 列表
export function list(params: any) {
    return ajaxPostBack("holder/member-room-list", params, {
        cookies: ['yard_sn']
    })
}

// 新增
export function add(params: any) {
    return ajaxPost("holder/member-room-create", params, { successMessage: true, cookies: ['yard_sn'] })
}

// 编辑
export function edit(params: any) {
    return ajaxPost("holder/member-room-edit", params, { successMessage: true, cookies: ['yard_sn'] })
}

// 删除
export function del({ member_room_sn, room_sn }: any) {
    return ajaxPost("holder/member-room-delete", { member_room_sn, room_sn }, { successMessage: true, cookies: ['yard_sn'] })
}

